//jUnit 3

import junit.framework.TestCase;

public class LiczbaTestTwo extends TestCase {
	Liczba value;
	
	public void setUp() {
		value = new Liczba();
	}
	
	public void testConvert(){
		int result = Integer.parseInt(value.konwersja(4, 2));
		System.out.println("konwersja(4, 2) = " + result);
		
		assertEquals(100, result);
		assertNotNull("Result is not null?", result);
	//	assertNull("Result is null?", result);
		assertFalse("Result of konwersja(4, 2) is 101?", result == 101);
		assertTrue("Result of konwersja(4, 2) is 100?", result == 100);
	}
	
	public void tearDown() {
		value = null;
	}

}
